/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

@keyframes outgoing-horizontal-left {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-32px);
  }
}

@keyframes incoming-horizontal-left {
  0% {
    opacity: 0;
    transform: translateX(32px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes outgoing-horizontal-right {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes incoming-horizontal-right {
  0% {
    opacity: 0;
    transform: translateX(-32px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes outgoing-vertical-bottom {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(32px);
  }
}

@keyframes incoming-vertical-bottom {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes outgoing-vertical-top {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-32px);
  }
}

@keyframes incoming-vertical-top {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

// outgoing
.outgoing-horizontal-left {
  animation-name: outgoing-horizontal-left;
}
.outgoing-horizontal-right {
  animation-name: outgoing-horizontal-right;
}
.outgoing-vertical-top {
  animation-name: outgoing-vertical-top;
}
.outgoing-vertical-bottom {
  animation-name: outgoing-vertical-bottom;
}

.outgoing-horizontal-left,
.outgoing-horizontal-right,
.outgoing-vertical-top,
.outgoing-vertical-bottom {
  animation-duration: @animation-timing-fast;
  animation-timing-function: @ease-in-expo;
}

// incoming
.incoming-horizontal-left {
  animation-name: incoming-horizontal-left;
}
.incoming-horizontal-right {
  animation-name: incoming-horizontal-right;
}
.incoming-vertical-top {
  animation-name: incoming-vertical-top;
}
.incoming-vertical-bottom {
  animation-name: incoming-vertical-bottom;
}

.incoming-horizontal-left,
.incoming-horizontal-right,
.incoming-vertical-top,
.incoming-vertical-bottom {
  animation-duration: @animation-timing-slow;
  animation-timing-function: @ease-out-expo;
  animation-delay: @animation-timing-fast;
}
